home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_27.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  124KB  |  816x1056  |  8-bit (256 colors)
OCR: Wed. Aug 28 1996 Beginners Guide Macintosh Assembly Language Programming age You may be asking How on earth can fred be a memory address" Labels see the next section. Program layout and structure. Now that We ve covered three instructions, its time to examine how assembly language progra ams are laid out and how they are written. All the mnemonics instruction names) that go to make up a program as a whole are called source code Source code 15 written using an editor - any editor will do so long as it will handle tabs, and not try to format the text into paragraphs Examine the following program. ******************************* *FIL ENAME: :EXAMPLEL.S *DESCRIPTION: PROGRAM TO ADD 3 NUMBERS TOGETHER AND PRINTTHE RESULT ON THE SCREEN ADD NUMBS BSR INIT CURSOR *part of 10 lib.s MOVE.L #10,D0 *F ...